
public class Game4RPG {
    public static void main(String[] args) {
        Game4SwordsMan swordsMan = new Game4SwordsMan();
        swordsMan.setName("Justin");
        swordsMan.setLevel(1);
        swordsMan.setBlood(200);

        Game4Magician magician = new Game4Magician();
        magician.setName("Monica");
        magician.setLevel(1);
        magician.setBlood(100);

        drawFight(swordsMan);
        drawFight(magician);
    }

    static void drawFight(Game4Role role) {
        System.out.print(role.getName());
        role.fight();
    }
}
